<?php get_header(); ?>

	<div id="wrapper">
    	<div id="content">

		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

		<div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class() ?>">
			<h2 class="entry-title"><?php the_title(); ?></h2>
			<div class="entry-date entry-meta"><?php unset($previousday); printf(__('%1$s'), the_date('', '', '', false), get_the_time()) ?></div>

			<div class="entry-content">
				<?php the_content(); ?>

				<?php link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: '), "</div>\n", 'number'); ?>
			</div>

			<div class="entry-meta">
				<?php the_tags(__('<div class="tag-links">Tags: '), ", ", "</div>") ?>
				<span class="entry-action"><?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Comments and trackbacks open ?>
					<?php printf(__('<a class="comment-link" href="#respond" title="Post a comment">Post a Comment</a> or <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Leave a Trackback</a>', 'sandbox'), get_trackback_url()) ?>
				<?php elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) : // Only trackbacks open ?>
					<?php printf(__('Comments are closed, but you can <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">leave a trackback</a>', 'sandbox'), get_trackback_url()) ?>
				<?php elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Only comments open ?>
					<?php printf(__('Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>', 'sandbox')) ?>
				<?php elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) : // Comments and trackbacks closed ?>
					<?php _e('Both comments and trackbacks are currently closed') ?>
				<?php endif; ?>
				</span>
				<?php edit_post_link(__('Edit', ''), "\t\t\t\t\t<div class=\"edit-link\">", "</div>\n"); ?>
			</div>
		</div><!-- .post -->

		<?php comments_template(); ?>

		<?php endwhile; else: ?>

			<p>Sorry, no posts matched your criteria.</p>

		<?php endif; ?>

		</div><!-- #content -->
	</div><!-- #wrapper -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>